using System;
using System.Text;

namespace OVS.BusinessObjects
{
	[Serializable()]
	public partial class Schedule
	{
		private int _sche_id;

		public int sche_id
		{
			get { return _sche_id; }
			set { _sche_id = value; }
		}

		private int _user_id;

		public int user_id
		{
			get { return _user_id; }
			set { _user_id = value; }
		}

		public Schedule()
		{ }

		public Schedule(int sche_id,int user_id)
		{
			this.sche_id = sche_id;
			this.user_id = user_id;
		}

		public override string ToString()
		{
			return "sche_id = " + sche_id.ToString() + ",user_id = " + user_id.ToString();
		}

		public partial class sche_idComparer : System.Collections.Generic.IComparer<Schedule>
		{
			public SorterMode SorterMode;
			public sche_idComparer()
			{ }
			public sche_idComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Schedule> Membres
			int System.Collections.Generic.IComparer<Schedule>.Compare(Schedule x, Schedule y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.sche_id.CompareTo(x.sche_id);
				}
				else
				{
					return x.sche_id.CompareTo(y.sche_id);
				}
			}
			#endregion
		}
		public partial class user_idComparer : System.Collections.Generic.IComparer<Schedule>
		{
			public SorterMode SorterMode;
			public user_idComparer()
			{ }
			public user_idComparer(SorterMode SorterMode)
			{
				this.SorterMode = SorterMode;
			}
			#region IComparer<Schedule> Membres
			int System.Collections.Generic.IComparer<Schedule>.Compare(Schedule x, Schedule y)
			{
				if (SorterMode == SorterMode.Ascending)
				{
					return y.user_id.CompareTo(x.user_id);
				}
				else
				{
					return x.user_id.CompareTo(y.user_id);
				}
			}
			#endregion
		}
	}
}
